#ifndef _LORA_METER_H_
#define _LORA_METER_H_

#include "fm33le0xx_fl.h"

typedef struct
{
	uint8_t target_sn[12];
	uint8_t connect_flag;
	uint8_t csq_value;
	uint32_t temperature;
	uint32_t votage;

	uint8_t upload_flag;
	uint32_t meter_plus;
	uint32_t wakeup_source;
}lora_meter;

extern lora_meter lora_m;
extern uint32_t heart_num;
uint8_t auto_enter_low_power_time_check(void);
void lora_meter_timing_upload(void);
int lora_meter_main_task(void);
void lora_meter_set_upload(void);
void system_run_time_set(uint32_t time);

void lora_preamble_no_data_reset(uint8_t mode);
#endif

